<?php
namespace app\common\validate\Product\order;

use think\Validate;

// 订单商品
class Product extends Validate
{
    protected $rule =   [
        'orderid'   => ['require'],
        'proid'   => ['require'],
        'pronum'   => ['require'],
        'price'   => ['require'],
        'total'   => ['require'],
    ];

    protected $message  =   [
        'orderid.require'     => '订单信息未知',
        'proid.require'     => '商品未知',
        'price.require'     => '商品价格未知',
        'total.require'     => '商品总价未知',
    ];

    /**
     * 设置验证器的场景
     */
    protected $scene = [
        
    ];
}